<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib tagdir="/WEB-INF/tags" prefix="my"%>

    <%-- Page pour les tags --%>

<c:set var="tlv" value="${requestScope.tagLV}" />
<%-- titre en fonction du parametre tlv--%>
<div class="prodNav grid_16">
    <div class="prodHeadline">
        <c:choose>
            <c:when test="${tlv != null}">
                <h3>${tlv.tag.nom}</h3>
            </c:when>
            <c:otherwise>
                <h3>Tags</h3>
            </c:otherwise>
        </c:choose>
    </div>
    <c:if test="${tlv != null}">
        <my:catOrderBy page="${param.page}" id="${param.id}" sort="${param.sort}" value="${param.value}" />
    </c:if>
</div>
<%-- contenu en fonction du parametre tlv --%>
<div class="bodyContent grid_16">
    <div class="products grid_16 alpha">
        <c:choose>
            <c:when test="${tlv != null}">
                <div class="prodMenu">
                    <my:jeuxVideo items="${tlv.jeuxVideo}" />
                </div>
                <my:pagination page="${param.page}" id="${param.id}" sort="${param.sort}" value="${param.value}" start="${param.start}" totalPages="${requestScope.totalPages}" />
            </c:when>
            <c:otherwise>
                <div id="wrapTags">
                    <div id="tags">
                        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
                    </div>
                </div>
            </c:otherwise>
        </c:choose>
    </div>
</div>
<c:if test="${tlv == null}">
    <script type="text/javascript">
        $(function() {
            swfobject.embedSWF('text_and_image_cloud.swf', 'tags', '900', '700', '10', 'expressInstall.swf', {
                cloud_data: 'XMLServlet?view=tags',
                tcolor: '0xFA9100',
                tcolor2: '0xFF5900',
                hicolor: '0xA63A00',
                tspeed: 200
            }, {
                menu: 'false',
                quality: 'best',
                wmode: 'transparent'
            });
        });
    </script>
</c:if>